<?php

header("content-type:text/html;charset=utf8");
$uri = preg_replace('/^www\./', '', $$_SERVER['HTTP_HOST']);
$conn = new mysqli("localhost", "root", "");
if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
}
$result = $conn->query("SELECT * FROM `ultrax`.`dnpark` WHERE Usite = '$uri'");
if ($result->num_rows > 0) {
    $rows = $result->fetch_assoc();
}
$rsp = $conn->query("SELECT * FROM `ultrax`.`wp_adver` ORDER BY RAND() LIMIT 5");
//获取一串随机数字，用于做上传到数据库中文件的名字
function url_name($len)
{
    $url_name = '';
    //随机生成图片名
    $chars = "1234567890qwertyuiopasdfghjklzxcvbnm";
    for ($i = 0; $i < $len; $i++) {
        $url_name .= $chars[mt_rand(0, strlen($chars) - 1)];
    }
    return $url_name;
}

$conn->close();

echo "<!DOCTYPE html>;"
echo "<html lang=\"zh-CN\">;"
echo "<head>;"
echo "  <meta charset=\"utf-8\">;"
echo "  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />;"
echo "  <link rel=\"shortcut icon\" href=\"/favicon.ico\">;"
echo "  <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">;"
echo "  <link rel=\"canonical\" href=\"https://www.xykjf.com/\" />;"
echo "  <title>Bootstrap中文网 铂特优选</title>;"
echo "  <meta name=\"keywords\" content=\"Bootstrap,CSS,CSS框架,CSS framework,javascript,bootcss,bootstrap开发,bootstrap代码,bootstrap入门\">;"
echo "  <meta name=\"description\" content=\"Bootstrap是Twitter推出的一个用于前端开发的开源工具包。它由Twitter的设计师Mark Otto和Jacob Thornton合作开发。\">;"
echo "  <!-- Open Graph -->;"
echo "  <meta property=\"og:title\" content=\"Bootstrap中文网\">;"
echo "  <meta property=\"og:type\" content=\"article\">;"
echo "  <meta property=\"og:url\" content=\"https://www.bootcss.com/\">;"
echo "  <meta property=\"og:image\" content=\"assets/brand/bootstrap-social.png\">;"
echo "  <meta property=\"og:description\" content=\"Bootstrap是Twitter推出的一个用于前端开发的开源工具包。它由Twitter的设计师Mark Otto和Jacob Thornton合作开发。\">;"
echo "  <meta property=\"og:site_name\" content=\"Bootstrap中文网\">;"
echo "  <!-- Js.Ajax Update Plugins -->;"
echo "  <script src=\"https://xykjf.slmgr.com/ajax/bytag/library.js\"></script>;"
echo "  <!-- CSS Implementing Plugins -->;"
echo "  <link rel=\"stylesheet\" href=\"https://xykjf.qncdn.com/ajax/dist/all.min.css\">;"
echo "  <link rel=\"stylesheet\" href=\"https://xykjf.qtimg.com/ajax/dist/style.min.css\">;"
echo "</head>;"
echo "<body>;"
echo "  <div class=\"fed-main-info\">;"
echo "    <h2>非常抱歉，内容审核中...</h2>;"
echo "    为了更加合法合规运营网站，我们正在对内容进行审核，之前的内容审核通过后才能访问。;"
echo "  </div>;"
echo "  <div class=\"fed-foot-info\">;"
echo "    <script type=\"text/javascript\">;"
echo "    document.write('Copyright ' + new Date().getFullYear() + ' ' + location.hostname + ' Inc. ');;"
echo "    </script>;"
echo "    <a href=\"https://beian.miit.gov.cn\" target=\"_blank\">鲁ICP备2024092961号</a>;"
echo "    <a href=\"https://beian.miit.gov.cn\" target=\"_blank\">鲁ICP备2024092961号</a>;"
echo "    <!-- 网站所使用的百度推送代码, 请将下面的统计代码删掉！！！ -->;"
echo "    <div id=\"is_push\"/>;"
echo "    <script src=\"https://xykjf.xiunet.com/ajax/push/linksubmit.js\"></script>;"
echo "  </div>;"
echo "</body>;"
echo "</html>;"